package com.boot.unity.api.wx.controller;


import com.boot.unity.api.wx.service.TrainCarModelService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wx/carmodel")
@Validated
public class WxCarModelController {
    private final Log logger = LogFactory.getLog(WxCarModelController.class);

    @Autowired
    private TrainCarModelService trainCarModelService;


    @GetMapping("getAll")
    public Object queryAllCarModel(){
        return trainCarModelService.getAllByStr();
    }
}
